package com.ruoyi.classs.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.useres.domain.User;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级管理对象 classes
 * 
 * @author 石晨臣
 * @date 2024-11-25
 */
@Data
public class Classes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String name;

    /** 最大人数 */
    @Excel(name = "最大人数")
    private Long maxNum;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 更新者 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新者", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateUser;

    /** 授权码 */
    @Excel(name = "授权码")
    private String powerld;

    /** 老师id */
    @Excel(name = "老师id")
    private Long teacherId;

    /** 0为启用 1为禁用 */
    @Excel(name = "0为启用 1为禁用")
    private Long status;

    /** 班级人数 */
    @Excel(name = "班级人数")
    private Long nowNum;
//    @Excel(name = "班级人数")
    private List<User> user;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMaxNum(Long maxNum) 
    {
        this.maxNum = maxNum;
    }

    public Long getMaxNum() 
    {
        return maxNum;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(Date updateUser) 
    {
        this.updateUser = updateUser;
    }

    public Date getUpdateUser() 
    {
        return updateUser;
    }
    public void setPowerld(String powerld) 
    {
        this.powerld = powerld;
    }

    public String getPowerld() 
    {
        return powerld;
    }
    public void setTeacherId(Long teacherId)
    {
        this.teacherId = teacherId;
    }

    public Long getTeacherId()
    {
        return teacherId;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setNowNum(Long nowNum) 
    {
        this.nowNum = nowNum;
    }

    public Long getNowNum() 
    {
        return nowNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("maxNum", getMaxNum())
            .append("createUser", getCreateUser())
            .append("updateUser", getUpdateUser())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("powerld", getPowerld())
            .append("teacherId", getTeacherId())
            .append("status", getStatus())
            .append("nowNum", getNowNum())
            .toString();
    }
}
